import 'package:flutter/material.dart';
import 'package:flutter_web/s2-layout/practice11-stack.dart';
import 'package:flutter_web/s2-layout/practice12-cardView.dart';

import 'package:flutter_web/s1-base/practice01.dart';
import 'package:flutter_web/s1-base/practice02-text.dart';
import 'package:flutter_web/s1-base/practice03-container.dart';
import 'package:flutter_web/s1-base/practice04-image.dart';
import 'package:flutter_web/s1-base/practice05-listView.dart';
import 'package:flutter_web/s1-base/practice06-listView.dart';
import 'package:flutter_web/s1-base/practice07-dynamicList.dart';
import 'package:flutter_web/s2-layout/practice08-gridView.dart';
import 'package:flutter_web/s2-layout/practice09-row.dart';
import 'package:flutter_web/s2-layout/practice10-column.dart';
import 'package:flutter_web/s3-navigator/practice13-navigator.dart';
import 'package:flutter_web/s3-navigator/practice14-navigator.dart';
import 'package:flutter_web/s3-navigator/practice15-navigator.dart';
import 'package:flutter_web/s4-demo/practice16-buttonBar.dart';
import 'package:flutter_web/s4-demo/practice17-buttonBar.dart';
import 'package:flutter_web/s4-demo/practice18-animation.dart';
import 'package:flutter_web/s4-demo/practice19-frostedGlass.dart';
import 'package:flutter_web/s4-demo/practice20-keepAlive.dart';
import 'package:flutter_web/s4-demo/practice21-searchBar.dart';
import 'package:flutter_web/s4-demo/practice22-wrap.dart';
import 'package:flutter_web/s4-demo/practice23-ExpansionTile.dart';
import 'package:flutter_web/s4-demo/practice24-ExpansionPanelList.dart';
import 'package:flutter_web/s5-web/index.dart';


void main() {
  // runApp(MyApp());
  // runApp(MyApp1());
  // runApp(MyApp2());
  // runApp(MyApp3());
  // runApp(MyApp4());
  // runApp(MyApp5());
  // runApp(MyApp6());
  // runApp(MyApp7(items: List<String>.generate(400, (i) => "Item $i")));
  // runApp(MyApp8());
  // runApp(MyAppImgView());
  // runApp(MyApp91());
  // runApp(MyApp92());
  // runApp(MyApp10());
  // runApp(MyApp11());
  // runApp(MyApp12());
  // runApp(MyApp13());
  // runApp(MyApp14());
  // runApp(MyApp15());
  // runApp(MyApp16());
  // runApp(MyApp17());
  // runApp(MyApp18());
  // runApp(MyApp19());
  // runApp(MyApp20());
  // runApp(MyApp21());
  // runApp(MyApp22());
  // runApp(MyApp23());
  // runApp(MyApp24());
  runApp(MyAppIndex());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ),
    );
  }
}
